package com.photography.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
@TableName("employee")
public class Employee implements Serializable {
    @TableId(type = IdType.INPUT)
    private   String    id;     //员工ID
    private   String    name;     //名字
    private   String     sex;     //性别
    private   String    phonenumber;     //手机号
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private   Date Birthdate;     //出生日期
    private   Integer    identitycard;     //身份证
    private   Integer         ismarital;     //婚否 ,可选值:1(是),0(否)
    private   String    national;     //用户民族
    private   String    nativeplace;     //籍贯
    private   Integer         isoffice;     //是否在职。可选值:1(在职),0(离职)
    private   Integer         status;     //状态。 可选值:1(启用),0(禁用)
    private   Integer     employeesworking;     //员工工号
    private   BigDecimal probationarysalary;     //试用期工资
    private   String   Insurancetype;     //保险类型
    private   String    contractyear;     //合同年限
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private   Date       entrydate;     //入职时间
    private   String       trydate;     //试用期时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private   Date       becomedate;     //转正时间
    private   String    linkman1;     //联系人1
    private   Integer     emergencycall1;     //紧急电话1
    private   String    linkman2;     //联系人2
    private   Integer     emergencycall2;     //紧急电话2
    private   String    graduateinstitutions;     //毕业院
    private   Date       created;     //创建时间
    private   Date       updated;     //创建时间

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPhonenumber() {
        return phonenumber;
    }

    public void setPhonenumber(String phonenumber) {
        this.phonenumber = phonenumber;
    }

    public Date getBirthdate() {
        return Birthdate;
    }

    public void setBirthdate(Date birthdate) {
        Birthdate = birthdate;
    }

    public Integer getIdentitycard() {
        return identitycard;
    }

    public void setIdentitycard(Integer identitycard) {
        this.identitycard = identitycard;
    }

    public Integer getIsmarital() {
        return ismarital;
    }

    public void setIsmarital(Integer ismarital) {
        this.ismarital = ismarital;
    }

    public String getNational() {
        return national;
    }

    public void setNational(String national) {
        this.national = national;
    }

    public String getNativeplace() {
        return nativeplace;
    }

    public void setNativeplace(String nativeplace) {
        this.nativeplace = nativeplace;
    }

    public Integer getIsoffice() {
        return isoffice;
    }

    public void setIsoffice(Integer isoffice) {
        this.isoffice = isoffice;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getEmployeesworking() {
        return employeesworking;
    }

    public void setEmployeesworking(Integer employeesworking) {
        this.employeesworking = employeesworking;
    }

    public BigDecimal getProbationarysalary() {
        return probationarysalary;
    }

    public void setProbationarysalary(BigDecimal probationarysalary) {
        this.probationarysalary = probationarysalary;
    }

    public String getInsurancetype() {
        return Insurancetype;
    }

    public void setInsurancetype(String insurancetype) {
        Insurancetype = insurancetype;
    }

    public String getContractyear() {
        return contractyear;
    }

    public void setContractyear(String contractyear) {
        this.contractyear = contractyear;
    }

    public Date getEntrydate() {
        return entrydate;
    }

    public void setEntrydate(Date entrydate) {
        this.entrydate = entrydate;
    }

    public Date getBecomedate() {
        return becomedate;
    }

    public void setBecomedate(Date becomedate) {
        this.becomedate = becomedate;
    }

    public String getLinkman1() {
        return linkman1;
    }

    public void setLinkman1(String linkman1) {
        this.linkman1 = linkman1;
    }

    public Integer getEmergencycall1() {
        return emergencycall1;
    }

    public void setEmergencycall1(Integer emergencycall1) {
        this.emergencycall1 = emergencycall1;
    }

    public String getLinkman2() {
        return linkman2;
    }

    public void setLinkman2(String linkman2) {
        this.linkman2 = linkman2;
    }

    public Integer getEmergencycall2() {
        return emergencycall2;
    }

    public void setEmergencycall2(Integer emergencycall2) {
        this.emergencycall2 = emergencycall2;
    }

    public String getGraduateinstitutions() {
        return graduateinstitutions;
    }

    public void setGraduateinstitutions(String graduateinstitutions) {
        this.graduateinstitutions = graduateinstitutions;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getUpdated() {
        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;
    }

    public String getTrydate() {
        return trydate;
    }

    public void setTrydate(String trydate) {
        this.trydate = trydate;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", phonenumber='" + phonenumber + '\'' +
                ", Birthdate=" + Birthdate +
                ", identitycard=" + identitycard +
                ", ismarital=" + ismarital +
                ", national='" + national + '\'' +
                ", nativeplace='" + nativeplace + '\'' +
                ", isoffice=" + isoffice +
                ", status=" + status +
                ", employeesworking=" + employeesworking +
                ", probationarysalary=" + probationarysalary +
                ", Insurancetype='" + Insurancetype + '\'' +
                ", contractyear='" + contractyear + '\'' +
                ", entrydate=" + entrydate +
                ", trydate='" + trydate + '\'' +
                ", becomedate=" + becomedate +
                ", linkman1='" + linkman1 + '\'' +
                ", emergencycall1=" + emergencycall1 +
                ", linkman2='" + linkman2 + '\'' +
                ", emergencycall2=" + emergencycall2 +
                ", graduateinstitutions='" + graduateinstitutions + '\'' +
                ", created=" + created +
                ", updated=" + updated +
                '}';
    }
}
